public class CirDoubleListMain
{
    public static void main(String[] args)
    {
        CirDoubleList<Integer> list = new CirDoubleList<>();
        list.insert(1);
        list.insert(2);
        list.insert(3);
        System.out.println(list.toString());
        System.out.println(list.toPreviousString());
        System.out.println(list.get(1));
        list.set(1, 4);
        System.out.println(list.toString());
        list.remove(2);
        System.out.println(list.toString());
        list.clear();
        System.out.println(list.isEmpty());
    }
}